<script language="javascript">
	function validate()
	{
		if($('#tenKhoa').val()=='')
		{
			$('#tenKhoa').focus();
			$("#alert-message").dialog('open');
			return false;
		}
		return true;
	}
</script>

<div id="tabs">
	<ul>
        <li><?php echo $this->Html->link(__('Danh sách các khoa', true), array('action' => 'index')); ?></li>
        <li id="current"><?php echo $this->Html->link(__('Thêm khoa', true), array('controller'=>'khoas','action' => 'add')); ?></li>
	</ul>
 </div>
 
<div id ="alert-message" title="Thông báo">
	<p>Chưa nhập tên Khoa</p>
</div>

<div class="khoas form">
<?php echo $this->Form->create('Khoa',array('onSubmit'=>'return validate()'));?>
	<fieldset>
		<legend><?php __('Tạo Khoa'); ?></legend>
	<?php
		echo $this->Form->input('tenKhoa', array('id'=>'tenKhoa','label'=>'Tên Khoa'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Tạo Khoa', true));?>
</div>
<div class="actions">
	<!--<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('DS Khoa', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('Ds Ngành', true), array('controller' => 'nganhs', 'action' => 'index')); ?> </li>
		<li><?php // echo $this->Html->link(__('New Nganh', true), array('controller' => 'nganhs', 'action' => 'add')); ?> </li>
	</ul>
--></div>